Xbasic

A5_Decrypt_String Function

Syntax

Decoded_Text as C = a5_decrypt_string(C Source ,C Key [,C Algorithm [,B Initializer ]])

Arguments

Decoded_Text

The plain text string

Source

The encoded string.

Key

The text used to decode SourceString.

Algorithm

Optional. Default = "Blowfish". Refer to Encryption Algorithms.

Initializer

Optional. Additional information to be provided by advanced users depending on the algorithm they use. Refer to the OpenSSL site at www.openssl.org for more information.

Description

Decrypts a base64 encoded encrypted string and returns the original string. The A5_Decrypt_String() function decodes a character string.

Example

dim ec as C

ec = a5_encrypt_string("alpha software", "abc")

? a5_decrypt_string(ec, "abc")
= "alpha software"

See Also